package com.furtherstar.auth.service;

import java.util.List;

import com.furtherstar.auth.controller.dto.AppRoleGroup;
import com.furtherstar.auth.controller.dto.RoleQuery;
import com.furtherstar.auth.controller.dto.RoleResourceSetting;
import com.furtherstar.auth.dao.model.AppRole;
import com.github.pagehelper.PageSerializable;

public interface AppRoleService {

	Long add(AppRole role);

	Long update(AppRole role);

	Long enable(Long roleId);

	Long disable(Long id);

	Boolean delete(Long id);

	PageSerializable<AppRole> queryPage(RoleQuery roleQuery);

	PageSerializable<AppRole> queryAvaliablePage(RoleQuery roleQuery);

	Boolean setResources(RoleResourceSetting roleResourceSetting);

	List<Long> getResources(Long roleId);

	List<AppRoleGroup> getGroupAppRoles();

}
